package qnb.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 角色表实体类
 *
 * @author
 */
public class SysRole {

    private Integer sysRoleId;       //主键
    private String sysName;         //角色名称
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sysRoleTime;    //角色创建时间
    private String sysRolePowers;    //角色权限。权限间用,号隔开
    private String sysRoleRemake;    //备注
    private Integer sysRolePid;     //pid

    @JsonInclude(JsonInclude.Include.NON_EMPTY)//为null则不转换为json
    private List<SysRole> children;

    private Integer sysRoleLevel; //角色等级

    public Integer getSysRoleLevel() {
        return sysRoleLevel;
    }

    public void setSysRoleLevel(Integer sysRoleLevel) {
        this.sysRoleLevel = sysRoleLevel;
    }

    public String getSysRoleRemake() {
        return sysRoleRemake;
    }

    public void setSysRoleRemake(String sysRoleRemake) {
        this.sysRoleRemake = sysRoleRemake;
    }



    public List<SysRole> getChildren() {
        return children;
    }

    public void setChildren(List<SysRole> children) {
        this.children = children;
    }

    public Integer getSysRoleId() {
        return sysRoleId;
    }

    public void setSysRoleId(Integer sysRoleId) {
        this.sysRoleId = sysRoleId;
    }

    public String getSysName() {
        return sysName;
    }

    public void setSysName(String sysName) {
        this.sysName = sysName;
    }

    public Date getSysRoleTime() {
        return sysRoleTime;
    }

    public void setSysRoleTime(Date sysRoleTime) {
        this.sysRoleTime = sysRoleTime;
    }

    public String getSysRolePowers() {
        return sysRolePowers;
    }

    public void setSysRolePowers(String sysRolePowers) {
        this.sysRolePowers = sysRolePowers;
    }

    public Integer getSysRolePid() {
        return sysRolePid;
    }

    public void setSysRolePid(Integer sysRolePid) {
        this.sysRolePid = sysRolePid;
    }
}
